Picket Plot

In [4]:
# Importing the load_table function from the file_reader module
from petrolib.file_reader import load_table

# Importing pyplot module from matplotlib
from matplotlib import pyplot as plt

# Loading data from 'wellA.csv' using the load_table function and specifying the delimiter as ','
well_df = load_table('wellA.csv', delimiter=',')

# Filtering the well_df DataFrame to include only rows where the 'DEPTH' column values are between 5550 and 5770
well_df = well_df[(well_df['DEPTH'] >= 5550) & (well_df['DEPTH'] <= 5770)]
In [6]:
# Importing the picketPlot function from the petrolib.interp module
from petrolib.interp import picketPlot

# Setting the style to 'classic' using plt.style.use
plt.style.use('classic')

# Generating a picket plot using the picketPlot function, with parameters specifying DataFrame (well_df),
# resistivity ('RT') and porosity ('NPHI') curves, color-coding by numeric value ('num'),
# coloring by gamma ray ('GR') curve, colormap ('rainbow'), and reservoir name ('A')
picketPlot(well_df, rt='RT', por='NPHI', color_code='num', hue='GR', cmap='rainbow', res_name='A')